home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
utils
/
stelm3.lzh
/
STELM
/
ELM.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-07
|
1KB
|
62 lines
#define MAXSTR 100
#define MAXMSG 500
#define MAXNAME 20
#define MAXDATE 20
#define MAXSUBJECT 35
#ifdef __MINT__
#define MAILDIR "u:/usr/mail"
#define EDITOR "u:/usr/bin/mg.ttp"
#else
#define MAILDIR "/usr/mail"
#define EDITOR "/usr/bin/vi"
#endif
#ifdef __TURBOC__ /* fix a few things */
#include <mintbind.h>
#define access(file,mod) close(open(file,O_RDONLY))
#define wait(a) Pwait()
#define ioctl(a,b,c) Fcntl(a,c,b)
#endif
#ifdef __MINT__
char *ux2dos(char *string); /* code in unixlib.lib */
#else
#define ux2dos(a) (a)
#endif
#define DEADLETTER "dead.letter"
#define STARTHEADER (1)
#define STARTLIST (STARTHEADER + 3)
#define STARTPROMPT (LINES - 5)
#define STARTMENU (STARTPROMPT - 4)
#define ENDLIST (STARTMENU - 2)
#define MSGLISTSIZE (ENDLIST - STARTLIST + 1)
#define PREFIX "> "
struct _Msg { long start; /* position in file */
char flag;
char status; /* has statusline ? */
int nrlines;
char sender[MAXNAME+1];
char subject[MAXSUBJECT+1];
char date[MAXDATE+1];
};
typedef struct _Msg Msg;
struct _Mbox { Msg *Msglist[MAXMSG+1];
FILE *fd;
char User[MAXNAME+1];
char Editor[MAXSTR+1];
char Path[MAXSTR+1];
int Count;
int CurMsg;
};
typedef struct _Mbox Mbox;